package cn.shoukaiseki.sjf4j.fastjson;

import cn.shoukaiseki.sjf4j.node.NumberType;

import java.math.BigDecimal;

public class FastjsonBigDecimalNode extends FastjsonNumericNode<BigDecimal>{

    public FastjsonBigDecimalNode(BigDecimal value) {
        super(value);
    }

    @Override
    public NumberType numberType() {
        return NumberType.BIG_DECIMAL;
    }

    @Override
    public String toString() {
        return value.toString();
    }

    @Override
    public BigDecimal asDecimalVal() {
        return value;
    }
}
